package com.yimils.core.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yimils.core.common.dto.GetQueryParams;
import com.yimils.core.sys.entity.UserEntity;
import com.yimils.core.sys.vo.CustomerUserVo;
import com.yimils.core.sys.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface UserMapper extends BaseMapper<UserEntity> {
    IPage<UserVo> getUserList(Page<UserVo> page);
    List<CustomerUserVo> getCustomerUsers(@Param("superiorId") Long superiorId);

    IPage<UserEntity> getUsers(Page<UserEntity> page, @Param("param") GetQueryParams reqParams);
}
